// components/argeement-item/index.js
Component({
  behaviors: ['wx://form-field'],
  /**
   * 组件的属性列表
   */
  properties: {
    title:{
      type:String,
      value:'服务协议'
    },
    name:String,
    value:Boolean,
    orderid:String
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    toAgreementPage(){
      wx.navigateTo({
        url: "/pages/serviceAgreement/index?orderId=" + this.data.orderid+'&&code='+this.data.name
      })
    }
  }
})
